package com.zhongkun.datahome.service.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author huangjie
 * @description 任务表
 * @date 2025-04-16
 */

@Data
public class Task extends BaseEntity {
    /**
     * 发起人
     */
    @Schema(description = "发起人")
    private Long startTenantUserId;

    /**
     * 接收人
     */
    @Schema(description = "接收人")
    private Long receiveTenantUserId;

    /**
     * 通知家庭id
     */
    @Schema(description = "通知业主房产")
    private String houseInfo;

    /**
     * 任务类型：common通用任务/acceptance验收/rectification整改/notice通知业主
     */
    @Schema(description = "任务类型：common通用任务/acceptance验收/rectification整改/notice通知业主")
    private String taskType;

    /**
     * 任务名称
     */
    @Schema(description = "任务名称")
    private String taskName;

    /**
     * 期望结束时间
     */
    @Schema(description = "期望结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expectFinishTime;

    /**
     * 期望结束时间
     */
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /**
     * 任务描述
     */
    @Schema(description = "任务描述")
    private String taskDescription;

    /**
     * 任务状态processing/finish
     */
    @Schema(description = "任务状态processing/finish")
    private String taskStatus;
}